package com.hmkj.core.api.jbppay.utils;

import com.xiaoleilu.hutool.setting.dialect.Props;

import java.io.File;
import java.util.Properties;

public class ConfigUtils {

    private static String     propPath = File.separator + "config.properties";
    private static Properties prop     = null;

    static {
        prop = new Props("config/config.properties");
    }

    public static String getProperty(String keyName) {
        return prop.getProperty(keyName);
    }

    public static String getProperty(String keyName, String defaultValue) {
        return prop.getProperty(keyName, defaultValue);
    }

}
